<template>
	<view class="container">
		<!-- 临时  start -->
	<!-- 	<view style="padding: 100rpx;">
			<zzmImg src="../../static/1.gif"></zzmImg>
		</view> -->
		<!-- 临时 end -->
		<view class="background">
			<image class="imgs" src="../../static/kf.png" mode="widthFix"></image>
		</view>
		<view class="customer">
			<view class="customer_box" @click="toPhone">
				<image src="../../static/call.png" mode=""></image>
				<view class="content">
					<view class="title">
						客服
					</view>
					<view class="tex">
						服务时间：早8:00-晚18:00
					</view>
				</view>
			</view>
		</view>
		<view class="customer" @click="toChat">
			<view class="customer_box">
				<image src="../../static/call.png" mode=""></image>
				<view class="content">
					<view class="title">
						人工客服
					</view>
					<view class="tex">
						服务时间：24小时
					</view>
				</view>
			</view>
		</view>

		<tabbarVue></tabbarVue>
	</view>
</template>

<script setup>
	import zzmImg from "../../components/zzmImg/index.vue"
	// 底部tabbar
	import tabbarVue from '../../components/tabbar.vue';

	function toPhone() {
		uni.makePhoneCall({
			phoneNumber: '10086' //仅为示例
		});
	}
	function toChat(){
		uni.navigateTo({
			url:"/pagesD/chat/chat"
		})
	}

</script>

<style lang="less" scoped>
	.container {


		.background {
			width: 100%;
			padding-bottom: 100rpx;
			background: linear-gradient(180deg, #037bff, rgba(0, 0, 0, 0));

			.imgs {
				width: 100%;
			}
		}

		.customer {
			position: relative;
			top: -100rpx;
			padding: 0 5%;
			box-sizing: border-box;

			.customer_box {
				background: #fff;
				padding: 30rpx 40rpx;
				box-sizing: border-box;
				width: 100%;
				border-radius: 30rpx;
				display: flex;
				align-items: center;

				image {
					border-radius: 50%;
					width: 120rpx;
					height: 120rpx;
					margin-right: 20rpx;
				}

				.content {
					font-size: 32rpx;

					.title {
						font-weight: 600;
						font-size: 34rpx;
					}

					.tex {
						color: gray;
						padding-top: 8rpx;
					}
				}

			}
		}

		.customer+.customer {
			margin-top: 20rpx;
		}


	}
</style>